{% for t in record.templates.all %} {{ t.name }} {% if not forloop.last %} | {% endif %} {% endfor %}